/**
 * Created by no1 on 2015/4/16.
 */

'use strict';

/**
 * Module base.
 */


var mongoose = require('mongoose');
var extend = require('mongoose-schema-extend');
var Schema = mongoose.Schema;
var ObjectId = mongoose.Schema.ObjectId;
var basemondel;
module.exports = {

    baseSchema: basemondel = new Schema({
        //名字
        name: {
            type: String,
            index: true
        },
        //短名字
        shortName: {
            type: String,
            index: true
        },
        //创建时间
        createdAt: {
            type: Date,
            index: true,
            "default": Date.now
        },
        //最后更新时间
        updateAt: {
            type: Date,
            index: true,
            "default": Date.now
        },
        //状态 0删除 1添加待审核 2审核通过 3审核不通过 4下线
        status: {
            type: Number,
            index: true
        },

        //内容
        content: String,
        //排序
        desc: String,

        //备注
        remarks: String
    })
};

